<template>
  <div class="zjw-box"  :style="{backgroundImage: 'url(' + bgUrl + ')'}"></div>
</template>

<script>
import { GlobalConfig } from '@/api/api';

export default {
  data() {
    return {
      bgUrl: ''
    }
  },
  mounted() {
    this.getConfig();
  },
  methods: {
    async getConfig() {
      const params = {
        key: 'zhizhiManageData'
      };
      const res = await GlobalConfig(params);
      this.bgUrl = JSON.parse(res.value).topUrl;
    }
  }
}
</script>

<style lang="scss" scoped>
.zjw-box {
  width: 100%;
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
}
</style>